package OODay03;

public class Dog extends Animal implements Swim{
    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name+"再吃骨头");
    }

    @Override
    public void swim() {
        System.out.println(color+"颜色的"+age+"岁的狗狗在游泳");
    }

    public void lookhome(){
        System.out.println(name+"在看家");
    }
}
